package com.group02.community.entity.visitor;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("zy_visitor")
public class ZyVisitor {
  @TableId
  @ExcelProperty("访客id")
  private long visitorId;
  @ExcelIgnore
  private long communityId;
  @ExcelProperty("访客姓名")
  private String visitorName;
  @ExcelProperty("访客电话")
  private String visitorPhoneNumber;
  @ExcelIgnore
  @DateTimeFormat(pattern = "yyyy-MM-dd")
 @JsonFormat(pattern = "yyyy-MM-dd")
//    @ExcelProperty("到访时间")
  private LocalDate visitorDate;
  @ExcelIgnore
  private long createById;
  @ExcelIgnore
  private String createByOpenId;
  @ExcelIgnore
  private String createBy;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ExcelProperty("创建时间")
  private LocalDateTime createTime;
  @ExcelIgnore
  private String updateBy;
  @ExcelIgnore
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDate updateTime;
  @ExcelProperty("备注")
  private String remark;





}
